﻿using System;
using System.Collections.Generic;
using System.Text;
using Xms.Core.Context;
using Xms.CRM.Domain;

namespace Xms.CRM
{
    public interface ICampusHolidayService
    {
        Guid Create(CampusHoliday entity);

        bool CreateMany(List<CampusHoliday> entitys);

        bool DeleteById(Guid id);

        bool DeleteById(List<Guid> ids);

        CampusHoliday FindById(Guid id);

        List<CampusHoliday> Query(Func<QueryDescriptor<CampusHoliday>, QueryDescriptor<CampusHoliday>> container);

        PagedList<CampusHoliday> QueryPaged(Func<QueryDescriptor<CampusHoliday>, QueryDescriptor<CampusHoliday>> container);

        bool Update(CampusHoliday entity);

        bool Update(Func<UpdateContext<CampusHoliday>, UpdateContext<CampusHoliday>> context);
    }
}
